/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufc.great.ad.DAO;

import br.ufc.great.ad.Model.DB;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author great
 */
public class SystemDAO {
    
    DB db = new DB();
    Session session = db.getSession();
    
    public void addSystem(br.ufc.great.ad.Model.System system) {
        Transaction tx = (Transaction) session.beginTransaction();
        session.save(system);
        tx.commit();
    }
}
